<?php
namespace app\admin\model;
use think\Model;
 
class GoodsType extends Model
{
	public function addOne($data)
	{
		return $this->insert($data);
	}

	public function getList($size,$page,$where=[])
	{
		return $this->where($where)->paginate($size,false,['page'=>$page])->toArray();
	}

	 public function getAll( $where = [] )
    {
        return $this->where( $where )->select();
    }
}